package com.parfinex.java.phase1.module2.task08;
//编程实现People类的测试
public class PeopleTest {
    public static void main(String[] args){
        //3验证static关键字修饰的静态成员（类成员)是否与创建对象无关、
        System.out.println("获取到的国籍信息是："+People.nationality);
        //1.使用有参方式构造两个People类型的对象并打印特片
        People p1 = new People("zhangfei",30/*,"China"*/);
        p1.show();
        People p2 = new People("guanyu", 35/*, "China"*/);
        p2.show();
        System.out.println("-------------");
        p1.nationality="蜀国";
        p1.show();
        p2.show();

    }

}
